package com.easy.dao;

import com.easy.bean.Order;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.aspectj.weaver.ast.Or;

import java.util.List;

@Mapper
public interface IOrderDao {
    Order getOrderByID(int id);

    Order getOrderByNumber(String number);

    List<Order> getOrder(@Param("order") Order order, @Param("page") Page page);
    List<Order> getOrderByStationCode(@Param("order") Order order);

    int getCount(@Param("order") Order order);
    int delOrder(int id);
    int addOrder(Order order);
    int editOrder(Order order);
}
